package com.hanserwei.han_picture.domain.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 空间
 */
@Schema(description = "空间")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`space`")
public class Space implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "id")
    private Long id;

    /**
     * 空间名称
     */
    @TableField(value = "space_name")
    @Schema(description = "空间名称")
    private String spaceName;

    /**
     * 空间级别: 0-普通版, 1-专业版, 2-旗舰版
     */
    @TableField(value = "space_level")
    @Schema(description = "空间级别: 0-普通版, 1-专业版, 2-旗舰版")
    private Integer spaceLevel;

    /**
     * 空间类型: 0-私有, 1-团队
     */
    @TableField(value = "space_type")
    @Schema(description = "空间类型: 0-私有, 1-团队")
    private Integer spaceType;

    /**
     * 空间图片的最大总大小
     */
    @TableField(value = "max_size")
    @Schema(description = "空间图片的最大总大小")
    private Long maxSize;

    /**
     * 空间图片的最大数量
     */
    @TableField(value = "max_count")
    @Schema(description = "空间图片的最大数量")
    private Long maxCount;

    /**
     * 当前空间的图片总大小
     */
    @TableField(value = "total_size")
    @Schema(description = "当前空间的图片总大小")
    private Long totalSize;

    /**
     * 当前空间的图片数量
     */
    @TableField(value = "total_count")
    @Schema(description = "当前空间的图片数量")
    private Long totalCount;

    /**
     * 创建用户 id
     */
    @TableField(value = "user_id")
    @Schema(description = "创建用户 id")
    private Long userId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 编辑时间
     */
    @TableField(value = "edit_time")
    @Schema(description = "编辑时间")
    private LocalDateTime editTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 是否删除
     */
    @TableField(value = "is_delete")
    @Schema(description = "是否删除")
    private Integer isDelete;
}